package com.nuoniu.sibanyun.mapper.erp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.erp.ErpWorkProcedure;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 工序管理 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2020-12-30
 */
public interface ErpWorkProcedureMapper extends BaseMapper<ErpWorkProcedure> {

    @Select("select * from mab_process where company_id=#{companyId} and code=#{code}")
    ErpWorkProcedure getByCode(String code, Integer companyId);

    @Select("select * from mab_process where company_id=#{companyId} and name=#{name}")
    ErpWorkProcedure getByName(String name, Integer companyId);
}
